Hello World

December 24, 2024

Hello World

Welcome to your new blog powered by mdsvex! This is an example post to demonstrate how markdown files are loaded and rendered in your SvelteKit application.

Features

  • Full markdown support with mdsvex
  • Frontmatter metadata
  • Syntax highlighting for code blocks
  • Component imports in markdown

Code Example

Here’s a simple example of syntax highlighting:

function greet(name) {
  return `Hello, ${name}!`;
}

console.log(greet('World'));

What’s Next?

You can create more blog posts by adding .md files to the /src/routes/blog/posts/ directory. Each post should include frontmatter with at least:

  • title: The title of your post
  • date: Publication date (YYYY-MM-DD format)
  • description: A brief description for SEO and previews

Happy blogging!

#svelte#mdsvex#blog